SWEP.Base = "weapon_ic_baseweapon"

if SERVER then
	AddCSLuaFile ("shared.lua")
end

SWEP.Spawnable				= true
SWEP.AdminSpawnable			= true

SWEP.Spawnable				= true
SWEP.AdminSpawnable			= true

SWEP.PrintName			= "DUAL BERETTA M9S"
SWEP.Description		= "With high power and effectively doubled rate of fire, two pistols allow for a solid low-medium range backup."

SWEP.Slot					= 1
SWEP.Cost					= 1500
SWEP.IconFont				= "CSKillIcons"
SWEP.IconLetter				= "s"

SWEP.Primary.ClipSize		= 30
SWEP.Primary.DefaultClip	= 120
SWEP.Primary.Automatic		= false
SWEP.Primary.Ammo			= "pistol"

SWEP.Primary.Sound			= Sound ("Weapon_Elite.Single")

SWEP.Primary.Delay			= 0.08
SWEP.Primary.Damage			= 25
SWEP.Primary.Cone			= 0.02
SWEP.Primary.Kick			= 1.0

SWEP.Secondary.ClipSize		= -1
SWEP.Secondary.DefaultClip	= -1
SWEP.Secondary.Automatic	= false 
SWEP.Secondary.Ammo			= "none"

SWEP.ViewModel = "models/weapons/v_pist_elite.mdl"
SWEP.ViewModelFlip = true
SWEP.ViewModelDefPos = Vector (0, 0, 0)
SWEP.ViewModelDefAng = Vector (0, 0, 0)

SWEP.WorldModel = "models/weapons/w_pist_elite.mdl"
SWEP.HoldType = "pistol"

SWEP.CSMuzzleFlashes = false --this is naff, but the alternative - muzzleflash from one gun - looks even naffer
local leftGun = false

function SWEP:FireEffects ()
	self.Weapon:EmitSound (self.Primary.Sound)
	if leftGun then
		self.Weapon:SendWeaponAnim (ACT_VM_SECONDARYATTACK)
	else
		self.Weapon:SendWeaponAnim (ACT_VM_PRIMARYATTACK)
	end
	leftGun = not leftGun
	self.Owner:SetAnimation (PLAYER_ATTACK1)
end

if CLIENT then killicon.AddFont("weapon_ic_elites", SWEP.IconFont, SWEP.IconLetter, Color(255, 80, 0, 255)) end
